package com.xxx.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangXJ
 * @since 2021-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TbUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
      @TableId(value = "userId", type = IdType.AUTO)
    private Integer userid;

    /**
     * 用户姓名
     */
    @TableField("userName")
    private String username;

    /**
     * 用户密码
     */
    @TableField("userPwd")
    private String userpwd;

    /**
     * 用户身份
     */
    @TableField("userIden")
    private String useriden;

//    public TbUser(String username, String userpwd) {
//        this.username = username;
//        this.userpwd = userpwd;
//        this.useriden = "1";
//    }
}
